<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body{
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100vw;
            height: 100vh;
        }
        dl{
            width: 400px;
            display: flex;
            flex-direction: column;
        }
        dt{
            background: #e67e22;
            border-bottom: solid 2px #333333;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        dd{
            height:200px;
            background-color: #bdc3c7;
            font-size: 5em;
            text-align: center;
            line-height: 200px;
        }
    </style>
</head>
<body>
    <dl>
        <dt>后盾人</dt>
        <dd hidden="hidden">1</dd>
        <dt>hdcms</dt>
        <dd hidden="hidden">2</dd>
        <dt>hdcms1</dt>
        <dd hidden="hidden">3</dd>
        <dt>hdcms3</dt>
        <dd hidden="hidden">4</dd>
    </dl>
</body>
</html>

<script>
    function panel(i){
        //获取倒所有的dd，将所有的dd全部搞为隐藏状态
        let dd = document.querySelectorAll('dd');
        dd.forEach((d,index) => d.setAttribute('hidden','hidden'));
        //点击当前的dt的时候，将当前的hidden属性去除掉
        dd[i].removeAttribute('hidden');
    }

    //都是window对象的话就第一个参数可以不用传递
    document.querySelectorAll("dt").forEach((dt,i) => {
        dt.addEventListener('click',() => panel.call(null,i));
    });
</script>